package com.zm.tools.validate.core;

/**
 * @author zoum
 * @create 2018/3/1 10:49
 */
public class BaseValidator {

    protected static boolean validate(String s, String regex){
        if (s == null || s.length() == 0){
            return false;
        }
        if (s.matches(regex)){
            return true;
        }

        return false;
    }
}
